package com.freecloud.javabasics.design.observer.subject;

import com.freecloud.common.LoggerUtil;
import com.freecloud.javabasics.design.observer.Event;

/**
 * 观察者
 * @Author: maomao
 * @Date: 2019-11-19 09:21
 */
public class Observer {

    public void advice(Event event){
        LoggerUtil.println("--------事件监听日志------");
        LoggerUtil.println(event);
        LoggerUtil.printThread();
        LoggerUtil.println("------------------------");
    }
}
